﻿using FluentValidation;

namespace YL.Core.Entity.Fluent.Validation
{
    public class CourseFluent : AbstractValidator<Whr_course_apply>
    {
        public CourseFluent()
        {
            RuleFor(x => x.CourseId).NotNull().NotEmpty().WithMessage("请选择课程");
            RuleFor(x => x.StudentId).NotNull().NotEmpty().WithMessage("请选择信息卡");
        }
    }
}
